/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package testchat;


import java.io.*;
import java.net.*;


/**
 *
 * @author ThanhKhanh
 */
public class Main {

    /**
     * @param args the command line arguments
     */
   public static void main(String arg[])
	{
		ServerSocket socket;


                try
                {
                    socket = new ServerSocket(1234);
                    DoCommand command = new DoCommand(socket.accept());
                    Thread t = new Thread(command);
                    t.start();
                }
                catch(Exception e)
                {

                }


	}

}
